package com.bins.dentist.clinic.utils;

import java.util.Random;

public class GenerateUtil {

    public static String generateUserCode(String prefix) {
        Random random = new Random();
        int number = random.nextInt(100000);
        String third = String.format("606d", number);
        return prefix + third;
    }

    public static String generateClinicCode(String prefix) {
        Random random = new Random();
        int number = random.nextInt(1000000);
        String third = String.format("606d", number);
        return prefix + third;
    }
}
